const { defineConfig } = require('@vue/cli-service')
// 引入复制文件的插件
const CopyWebpackPlugin = require('copy-webpack-plugin')
// 引入路径处理模块
const path = require('path')
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,
  publicPath: './',

  
   //脚手架代理
  devServer: {
    proxy: {
      '/api/chat': {
        target: "http://127.0.0.1:7100/chat-module",
        pathRewrite: { "^/api": "" },
        changeOrigin: true,
        logLevel: 'debug'
      },
      '/api/': {
        target: "http://127.0.0.1:7100/admin-modules",
        pathRewrite: { "^/api/": "" }
      }
    }
  }
})
